<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 154 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts154p0{position:absolute;left:106px;top:97px;}
 .ts154p1{position:absolute;left:352px;top:97px;}
 .ts154p3{position:absolute;left:665px;top:97px;}
 .ts154p7{position:absolute;left:106px;top:113px;}
 .ts154p8{position:absolute;left:706px;top:1026px;}
 .ts154p9{position:absolute;left:331px;top:1044px;}
 .ts154p13{position:absolute;left:106px;top:147px;}
 .ts154p15{position:absolute;left:106px;top:165px;}
 .ts154p17{position:absolute;left:106px;top:183px;}
 .ts154p19{position:absolute;left:106px;top:201px;}
 .ts154p21{position:absolute;left:106px;top:220px;}
 .ts154p23{position:absolute;left:106px;top:238px;}
 .ts154p25{position:absolute;left:106px;top:256px;}
 .ts154p27{position:absolute;left:106px;top:274px;}
 .ts154p29{position:absolute;left:106px;top:292px;}
 .ts154p31{position:absolute;left:106px;top:310px;}
 .ts154p33{position:absolute;left:106px;top:328px;}
 .ts154p35{position:absolute;left:106px;top:346px;}
 .ts154p37{position:absolute;left:106px;top:365px;}
 .ts154p39{position:absolute;left:106px;top:383px;}
 .ts154p41{position:absolute;left:106px;top:401px;}
 .ts154p44{position:absolute;left:106px;top:419px;}
 .ts154p46{position:absolute;left:106px;top:437px;}
 .ts154p48{position:absolute;left:106px;top:455px;}
 .ts154p50{position:absolute;left:106px;top:473px;}
 .ts154p52{position:absolute;left:106px;top:491px;}
 .ts154p54{position:absolute;left:106px;top:510px;}
 .ts154p56{position:absolute;left:106px;top:528px;}
 .ts154p58{position:absolute;left:106px;top:546px;}
 .ts154p59{position:absolute;left:106px;top:564px;}
 .ts154p61{position:absolute;left:106px;top:582px;}
 .ts154p62{position:absolute;left:106px;top:601px;}
 .ts154p63{position:absolute;left:106px;top:619px;}
 .ts154p66{position:absolute;left:106px;top:638px;}
 .ts154p67{position:absolute;left:106px;top:656px;}
 .ts154p68{position:absolute;left:106px;top:674px;}
 .ts154p69{position:absolute;left:106px;top:693px;}
 .ts154p71{position:absolute;left:106px;top:711px;}
 .ts154p72{position:absolute;left:106px;top:730px;}
 .ts154p75{position:absolute;left:106px;top:748px;}
 .ts154p77{position:absolute;left:106px;top:766px;}
 .ts154p78{position:absolute;left:106px;top:785px;}
 .ts154p80{position:absolute;left:106px;top:803px;}
 .ts154p81{position:absolute;left:106px;top:822px;}
 .ts154p83{position:absolute;left:106px;top:840px;}
 .ts154p84{position:absolute;left:106px;top:858px;}
 .ts154p85{position:absolute;left:106px;top:877px;}
 .ts154p87{position:absolute;left:106px;top:895px;}
 .ts154p88{position:absolute;left:106px;top:914px;}
 .ts154p89{position:absolute;left:106px;top:932px;}
 .ts154p91{position:absolute;left:106px;top:950px;}

 /* Font Styles */
 .ft0p154{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p154{font-weight:normal;}
 .ft2p154{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p154{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p154{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p154{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft6p154{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground154{position:absolute;left:97px;top:145px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index153.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;154 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index155.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground154><img src="./background154.png" width="633" height="910" border="0" alt=""></div>
<div class=ts154p0><span class="ft0p154"> </span></div>
<div class=ts154p1><span class="ft0p154">Gravitybox Schedule Primer<span class="ft1p154"> </span></span></div>
<div class=ts154p3><span class="ft0p154">Page 152&nbsp; </span></div>
<div class=ts154p7><span class="ft2p154"> </span></div>
<div class=ts154p8><span class="ft3p154"> </span></div>
<div class=ts154p9><span class="ft4p154">1998&#45;2004 Gravitybox Software LLC<span class="ft3p154"> </span></span></div>
<div class=ts154p13><span class="ft5p154">&nbsp;&nbsp; </span></div>
<div class=ts154p15><span class="ft5p154">&nbsp; Select Case oItem.Name </span></div>
<div class=ts154p17><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts154p19><span class="ft5p154">&nbsp;&nbsp;&nbsp; Case &#34;Today&#34;: 'Today </span></div>
<div class=ts154p21><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmToday.Show </span></div>
<div class=ts154p23><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts154p25><span class="ft5p154">&nbsp;&nbsp;&nbsp; Case &#34;Calendar&#34;: 'Calendar </span></div>
<div class=ts154p27><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmCalendar.Show </span></div>
<div class=ts154p29><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts154p31><span class="ft5p154">&nbsp;&nbsp;&nbsp; Case &#34;Contacts&#34;: 'Contacts </span></div>
<div class=ts154p33><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmContact.Show </span></div>
<div class=ts154p35><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts154p37><span class="ft5p154">&nbsp;&nbsp;&nbsp; Case &#34;Tasks&#34;: 'Tasks </span></div>
<div class=ts154p39><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Load frmTask </span></div>
<div class=ts154p41><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set frmTask.TaskColumns = TaskColumns </span></div>
<div class=ts154p44><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call frmTask.RefreshForm </span></div>
<div class=ts154p46><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmTask.Show </span></div>
<div class=ts154p48><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp; </span></div>
<div class=ts154p50><span class="ft5p154">&nbsp;&nbsp;&nbsp; Case &#34;Notes&#34;: 'Notes </span></div>
<div class=ts154p52><span class="ft5p154">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmNote.Show </span></div>
<div class=ts154p54><span class="ft5p154">&nbsp;&nbsp; </span></div>
<div class=ts154p56><span class="ft5p154">&nbsp; End Select </span></div>
<div class=ts154p58><span class="ft5p154"> </span></div>
<div class=ts154p59><span class="ft5p154">End Sub </span></div>
<div class=ts154p61><span class="ft6p154"> </span></div>
<div class=ts154p62><span class="ft6p154">The code for this method merely loads the appropriate form, when the user presses an </span></div>
<div class=ts154p63><span class="ft6p154">item on the Listbar.&nbsp; </span></div>
<div class=ts154p66><span class="ft6p154"> </span></div>
<div class=ts154p67><span class="ft6p154">The entire application rides on top of the OrganizeAPI DLL file. In the code displayed in </span></div>
<div class=ts154p68><span class="ft6p154">this section, you will see references to objects that you have never seen before and no </span></div>
<div class=ts154p69><span class="ft6p154">database access. Though this application uses a database to save and load data, only </span></div>
<div class=ts154p71><span class="ft6p154">the API actually touches the database. The GUI that we are building simply calls the </span></div>
<div class=ts154p72><span class="ft6p154">API. By constructing an object&#45;oriented API, other application may be built that use the </span></div>
<div class=ts154p75><span class="ft6p154">API to manipulate the objects. For example, another application could be made that </span></div>
<div class=ts154p77><span class="ft6p154">does some type of data backup once a week. Another may be built that cleans up old </span></div>
<div class=ts154p78><span class="ft6p154">appointments or creates an archive of old appointments or task items. </span></div>
<div class=ts154p80><span class="ft6p154"> </span></div>
<div class=ts154p81><span class="ft6p154">Throughout this demonstration, the loading and saving of objects will be done using a </span></div>
<div class=ts154p83><span class="ft6p154">global object named &#147;ThisUser&#148;. This object is defined from the &#147;CUserPreference&#148; </span></div>
<div class=ts154p84><span class="ft6p154">class in the API DLL. It has properties and methods that control user maintenance, </span></div>
<div class=ts154p85><span class="ft6p154">saving, loading, etc. All load/save methods take this object as a parameter to properly </span></div>
<div class=ts154p87><span class="ft6p154">perform their operations. The format was chosen to ensure that the same user load and </span></div>
<div class=ts154p88><span class="ft6p154">saves the objects. This solves certain consistency problems. This user object also </span></div>
<div class=ts154p89><span class="ft6p154">contains the needed database connection information. </span></div>
<div class=ts154p91><span class="ft6p154"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
